package com.neusoft.hospital.service.impl;

import com.neusoft.hospital.mapper.CheckitemdetailedMapper;
import com.neusoft.hospital.pojo.checkitem;
import com.neusoft.hospital.pojo.checkitemdetailed;
import com.neusoft.hospital.service.Checkitemdetailedservice;
import com.neusoft.hospital.service.Checkitemservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
@Transactional

public class Checkitemdetailedserviceimpl implements Checkitemdetailedservice
{
@Resource
CheckitemdetailedMapper checkitemdetailedMapper;


    @Override
    public int insertcheckitemdetailed(checkitemdetailed checkitemdetailed) {
        return checkitemdetailedMapper.insertcheckitemdetailed(checkitemdetailed);
    }

    @Override
    public int updatecheckitemdetailed(checkitemdetailed checkitemdetailed) {
        return checkitemdetailedMapper.updatecheckitemdetailed(checkitemdetailed);
    }

    @Override
    public int deletecheckitemdetailed(checkitemdetailed checkitemdetailed) {
        return checkitemdetailedMapper.deletecheckitemdetailed(checkitemdetailed);
    }



    @Override
    public List<checkitemdetailed> findcheckitemdetailedList2(int cdId) {
        return checkitemdetailedMapper.findcheckitemdetailedList2(cdId);//通过id查
    }


    @Override
    public List<checkitemdetailed> findcheckitemdetailedByChoose(String name) {
        return checkitemdetailedMapper.findcheckitemdetailedByChoose(name);//通过名字查
    }

    @Override
    public List<checkitemdetailed> findcheckitemdetailedBySql() {
        return checkitemdetailedMapper.findcheckitemdetailedBySql();//全查
    }
}
